import Home from './module/home'
import Quote from './module/quote'
import Slider from './module/slider'
import Financial from './module/financial'
import Assets from './module/assets'
import Trade from './module/trade'
import Loan from './module/loan'
import Pledge from './module/pledge'
import User from './module/user'
import Help from './module/help'
import Nft from './module/nft'
import other from './module/other'
import subscription from './module/subscription'
export default [
  // 首页
  {
    alias: '/',
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home/index.vue')
  },
  // 币种选择器演示页面
  {
    path: '/currency-selector-demo',
    name: 'CurrencySelectorDemo',
    component: () => import('@/views/demo/CurrencySelectorDemo.vue'),
    meta: {
      title: '币种选择器演示'
    }
  },
  ...Home,
  ...Quote, // 行情
  ...Financial, // 理财
  ...Trade, // 交易
  ...Slider, //侧边栏
  ...Loan, //助力贷
  ...Pledge, //质押挖矿
  ...Assets, //资产
  ...User, //用户
  ...Help, // 帮助
  ...Nft, // nft
  ...other, // 其他
  ...subscription, //申购
  //行情
  {
    path: '/quote',
    name: 'Quote',
    component: () => import('@/views/quote/index.vue')
  },
  // 交易
  {
    path: '/trade',
    name: 'Trade',
    component: () => import('@/views/trade/index.vue')
  },
  // 交易杠杆
  {
    path: '/tradeU',
    name: 'TradeU',
    component: () => import('@/views/trade/tradeU.vue')
  },
  // 交易BB
  {
    path: '/tradeBB',
    name: 'TradeBB',
    component: () => import('@/views/trade/tradeBB.vue')
  },
  // 挖矿
  {
    path: '/defi',
    name: 'Defi',
    component: () => import('@/views/defi/index.vue')
  },
  {
    path: '/defiDetail',
    name: 'defiDetail',
    component: () => import('@/views/defi/defiDetail.vue')
  },
  // 理财
  {
    path: '/financial',
    name: 'Financial',
    component: () => import('@/views/financial/index.vue')
  },
  // 资产
  {
    path: '/assets',
    name: 'Assets',
    component: () => import('@/views/assets/index.vue')
  },
  // Auth Center 页面
  {
    path: '/auth-center',
    name: 'AuthCenter',
    component: () => import('@/views/home/AuthCenter.vue')
  },
  // Earn Coins 页面
  {
    path: '/earnCoins',
    name: 'EarnCoins',
    component: () => import('@/views/earnCoins.vue')
  },
  // Borrowing Currency 页面
  {
    path: '/borrowingCurrency',
    name: 'BorrowingCurrency',
    component: () => import('@/views/borrowingCurrency.vue')
  },
  // 客服
  {
    path: '/service',
    name: 'Service',
    component: () => import('@/views/service/index.vue')
  },
  // 24小时新闻
  {
    path: '/news',
    name: 'news',
    component: () => import('@/views/news/index.vue')
  },
  // AI智能量化
  {
    path: '/aiquant',
    name: 'AIQuant',
    component: () => import('@/views/home/AIQuant.vue')
  },
  // AI智能量化订单
  {
    path: '/aiquantOrder',
    name: 'AIQuantOrder',
    component: () => import('@/views/home/AIQuantOrder.vue')
  },
  // 公告
  {
    path: '/consult',
    name: 'Consult',
    component: () => import('@/views/consult/index.vue'),
	  meta: { requiresAuth: false } // ✅ 不需要登录
  },
  // 公告内页
  {
    path: '/zxDetail/:id',
    name: 'zxDetail',
    component: () => import('@/views/home/components/zxDetail/index.vue'),
	  meta: { requiresAuth: false } // ✅ 不需要登录
  },
  // 量化合約
  {
    path: '/quantContract',
    name: 'QuantContract',
    component: () => import('@/views/home/QuantContract.vue')
  },
  // 量化合约展示页
  {
    path: '/quantContractShow',
    name: 'QuantContractShow',
    component: () => import('@/views/home/QuantContractShow.vue')
  },
  // 量化合約订单明细
  {
    path: '/quantContractOrder',
    name: 'QuantContractOrder',
    component: () => import('@/views/home/QuantContractOrder.vue')
  },
  // 秒合约订单列表
  {
    path: '/quantContractOrder1',
    name: 'QuantContractOrder1',
    component: () => import('@/views/home/SecondOrderList.vue')
  },
  // 现货订单列表
  {
    path: '/quantCurrencyOrder',
    name: 'QuantCurrencyOrder',
    component: () => import('@/views/home/QuantCurrencyOrder.vue')
  },
  // 合约订单列表
  {
    path: '/quantUstandardOrder',
    name: 'QuantUstandardOrder',
    component: () => import('@/views/home/QuantUstandardOrder.vue')
  },
  

  // AI跟投详情
  {
    path: '/aiFollowDetail',
    name: 'AIFollowDetail',
    component: () => import('@/views/home/AIFollowDetail.vue')
  },
  // AI預測详情
  {
    path: '/aiForecastDetail',
    name: 'AIForecastDetail',
    component: () => import('@/views/home/AIForecastDetail.vue')
  },
  // 股票详情页面
  {
    path: '/stock-detail/:symbol',
    name: 'StockDetail',
    component: () => import('@/views/home/StockDetail.vue'),
    meta: {
      title: '股票详情'
    }
  },
  // 订单列表页面
  {
    path: '/order-list',
    name: 'OrderList',
    component: () => import('@/views/home/OrderList.vue'),
    meta: {
      title: '订单记录'
    }
  },
  // AI跟投人详情
  {
    path: '/aiFollowPersonDetail',
    name: 'AIFollowPersonDetail',
    component: () => import('@/views/home/AIFollowPersonDetail.vue')
  },
  // AI跟投订单
  {
    path: '/aiFollowOrder',
    name: 'AIFollowOrder',
    component: () => import('@/views/home/AIFollowOrder.vue')
  },
  // 测试页面
  {
    path: '/test',
    name: 'Test',
    component: () => import('@/views/trade/test.vue')
  },
  // 常见问题
  {
    path: '/problem',
    name: 'Problem',
    component: () => import('@/views/home/Problem.vue')
  },
  // 充值申请页面
  {
    path: '/recharge-apply',
    name: 'RechargeApply',
    component: () => import('@/views/recharge/RechargeApply.vue')
  },
  // 提现申请页面
  {
    path: '/withdraw-apply',
    name: 'WithdrawApply',
    component: () => import('@/views/withdraw/WithdrawApply.vue')
  },
  // 划转页面
  {
    path: '/transfer-apply',
    name: 'TransferApply',
    component: () => import('@/views/transfer/TransferApply.vue')
  },
  // 财务记录页面
  {
    path: '/finance-record',
    name: 'FinanceRecord',
    component: () => import('@/views/finance/FinanceRecord.vue')
  },
  // 智能量化页面
  {
    path: '/smartquant',
    name: 'SmartQuant',
    component: () => import('@/views/home/SmartQuant.vue')
  },
  // 智能量化订单页面
  {
    path: '/smartquant-order',
    name: 'SmartQuantOrder',
    component: () => import('@/views/home/SmartQuantOrder.vue')
  },
  // 智能量化订单详情页面
  {
    path: '/smartquant-order-detail',
    name: 'SmartQuantOrderDetail',
    component: () => import('@/views/home/SmartQuantOrderDetail.vue')
  },
  // AI量化套利页面
  {
    path: '/aiArb',
    name: 'AIArb',
    component: () => import('@/views/home/aiArb.vue')
  },
  // AI量化套利订单页面
  {
    path: '/aiArbOrder',
    name: 'AiArbOrder',
    component: () => import('@/views/home/AiArbOrder.vue')
  },
  // AI量化套利订单详情页面
  {
    path: '/aiArbOrderDetail',
    name: 'AiArbOrderDetail',
    component: () => import('@/views/home/AiArbOrderDetail.vue')
  },
  // AI量化介绍/FAQ页面
  {
    path: '/aiquant-intro',
    name: 'AIQuantIntro',
    component: () => import('@/views/home/AIQuantIntro.vue')
  },
  // Earn Statistics 页面
  {
    path: '/earnStatistics',
    name: 'EarnStatistics',
    component: () => import('@/views/home/EarnStatistics.vue')
  },
  // Email Address 页面
  {
    path: '/email-address',
    name: 'EmailAddress',
    component: () => import('@/views/home/EmailAddress.vue')
  },
  // Reset Password 页面
  {
    path: '/reset-password',
    name: 'ResetPassword',
    component: () => import('@/views/home/ResetPassword.vue')
  },
  // 邀请好友页面
  {
    path: '/invite-friend',
    name: 'InviteFriend',
    component: () => import('@/views/home/InviteFriend.vue')
  },
  // 邀请详情页面
  {
    path: '/invite-detail',
    name: 'InviteDetail',
    component: () => import('@/views/home/InviteDetail.vue')
  },
  // 首页
  {
    path: '/ai-follow-order-list',
    name: 'AIFollowOrderList',
    component: () => import('@/views/home/AIFollowOrderList.vue'),
    meta: {
      title: '订单记录'
    }
  },
  {
    path: '/ai-follow-order-detail',
    name: 'AIFollowOrderDetail',
    component: () => import('@/views/home/AIFollowOrderDetail.vue'),
    meta: {
      title: '订单详情'
    }
  },
  {
    path: '/quantContractOrderDetail',
    name: 'QuantContractOrderDetail',
    component: () => import('@/views/home/QuantContractOrderDetail.vue')
  },
  // About Us 页面
  {
    path: '/about-us',
    name: 'AboutUs',
    component: () => import('@/views/home/AboutUs.vue'),
	  meta: { requiresAuth: false } // ✅ 不需要登录
  },
  {
    path: '/:catchAll(.*)', // 不识别的path自动匹配404
    redirect: '/home'
  }
]
